<template>
  <div>
    <div class="box-top">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item v-for="(item,index) in list" @click="submit(item)" :key="index">
          <img :src="item.image" alt="">
        </van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>

<script>
  export default {
    props:['list'],
    methods:{
      submit(item){
        if (item.url){
          window.open(item.jumpLink)
        }
      }
    }
  }
</script>


<style scoped lang="scss">
.box-top{
  width: 100%;
  height: 248px;
  img{
    width: 100%;
    height: 248px;
    object-fit: cover;
  }
}
</style>